﻿@model Classified.Domain.Entities.ClassifiedCategory

<fieldset>
    @Html.HiddenFor(m => m.Id)
    <div class="clearfix">
        @Html.LabelFor(model => model.Name)
        <div class="input">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
    </div>
    <div class="clearfix">
        @Html.LabelFor(model => model.ParentCategoryId)
       
        <div class="input chzn-select">
            @Html.DropDownList("ParentCategoryId")
           
        </div>

    </div>
    <div class="clearfix">
                        @Html.LabelFor(model => model.MetaTitle)
                        <div class="input">
                            @Html.EditorFor(model => model.MetaTitle)
                            @Html.ValidationMessageFor(model => model.MetaTitle)
                        </div>
                    </div>
                    <div class="clearfix">
                        @Html.LabelFor(model => model.MetaKeyWord)
                        <div class="input">
                            @Html.EditorFor(model => model.MetaKeyWord)
                            @Html.ValidationMessageFor(model => model.MetaKeyWord)
                        </div>
                    </div>
                    <div class="clearfix">
                        @Html.LabelFor(model => model.MetaDesc)
                        <div class="input">
                            @Html.TextAreaFor(model => model.MetaDesc)
                            @Html.ValidationMessageFor(model => model.MetaDesc)
                        </div>
                    </div>
    <div class="clearfix">
        @Html.LabelFor(model => model.Description)
        <div class="input">
            @Html.TextAreaFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
    </div>
    <div class="clearfix">
        &nbsp;
        <div class="input">
            @Html.EditorFor(model => model.IsPriceShown) Is PriceShown
            @Html.ValidationMessageFor(model => model.IsPriceShown)
        </div>
    </div>
    <div class="clearfix">
        &nbsp;
        <div class="input">
            @Html.EditorFor(model => model.IsActive) Is Active
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>
    </div>
    <div class="actions">
        <input type="submit" class="btn" value="Save" />
        <input type="button" class="btn closeModal" value="Close window" />
    </div>
</fieldset>

 <script type="text/javascript">
     $(document).ready(function () {
         $("div.chzn-select select").chosen({ width: '600px' });
         $(".chzn-select-deselect").chosen({ allow_single_deselect: true });
     });
    </script>